package com.fowo.api.model.supplier.task.sub;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 供应商产品开发任务子表 导入导出辅助模型 */
@Getter
@Setter
public class SupplierTaskSubExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属供应商产品开发任务")
  private String parentSupplierTaskTaskId;

  @ExcelIgnore
  @ExcelProperty(value = "所属供应商产品开发任务")
  private Long parentSupplierTask;

  @NotBlank(message = "类型不能为空")
  @Size(max = 50, message = "类型长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*类型")
  private String type;

  @NotNull(message = "计划数量不能为空")
  @ExcelProperty(value = "*计划数量")
  private Integer plannedQuantity;

  @ExcelProperty(value = "完成数量")
  private Integer completedQuantity;
}
